﻿using System;

namespace Eneta.Portal.Forum.Rss
{
    [Serializable]
    public class RssSource : RssElement
    {
        // Fields
        private string name = "";
        private Uri uri = RssDefault.Uri;

        // Properties
        public string Name
        {
            get
            {
                return this.name;
            }
            set
            {
                this.name = RssDefault.Check(value);
            }
        }

        public Uri Url
        {
            get
            {
                return this.uri;
            }
            set
            {
                this.uri = RssDefault.Check(value);
            }
        }
    }
}
